package com.sacc.clients;

import com.power.common.model.CommonResult;
import com.sacc.pojo.BoxAll;
import com.sacc.pojo.BoxCheck;
import com.sacc.pojo.ProductInfoAll;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;
import java.util.List;

/**
 * @author 滚~韬
 * @date 2022/4/14 14:09
 */
@FeignClient(value = "box-center")
public interface BoxClient {
    @GetMapping("/box/adopted/getadopted")
    List<Integer> boxIdsadopted(@RequestParam String openId);
    @GetMapping("/box/adopted/getunadopted")
    List<Integer> boxIdsUnadopted(@RequestParam String openId);
    @PostMapping("/box/adopted/toadopt")
    CommonResult Adopt(@RequestParam String openId,@RequestParam String boxId);
    @GetMapping("/box/box/getpart")
    BoxCheck getPartofBoxCheck(@RequestParam Integer boxId);
    @GetMapping("/box/box/get")
    BoxAll getBox(@RequestParam Integer boxId);
    @GetMapping("/box/box/getallcheck")
    List<BoxCheck> getallcheck(@RequestParam String openId);
    @GetMapping("/box/box/getallcheckcount")
    HashMap<String,Integer> getallcheckcount(@RequestParam String openId);
    @PostMapping("/box/box/addid")
    CommonResult AddProductid(@RequestParam Integer productId,@RequestParam Integer boxId);
}
